package com.example.consumer.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author 王杨帅
 * @create 2018-09-14 12:00
 * @desc
 **/
@ConfigurationProperties(value = "girl")
@Data
@Component
@RefreshScope
public class GirlConfigProperties {

    private String name;
    private Integer age;

}

